Optimal. Leaf size=14 \[ -\tanh ^{-1}\left (\frac{\coth (x)}{\sqrt{\text{csch}^2(x)}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0214563, antiderivative size = 14, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 10, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.4, Rules used = {3657, 4122, 217, 206} \[ -\tanh ^{-1}\left (\frac{\coth (x)}{\sqrt{\text{csch}^2(x)}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3657
Rule 4122
Rule 217
Rule 206
Rubi steps
\begin{align*} \int \sqrt{-1+\coth ^2(x)} \, dx &=\int \sqrt{\text{csch}^2(x)} \, dx\\ &=-\operatorname{Subst}\left (\int \frac{1}{\sqrt{-1+x^2}} \, dx,x,\coth (x)\right )\\ &=-\operatorname{Subst}\left (\int \frac{1}{1-x^2} \, dx,x,\frac{\coth (x)}{\sqrt{\text{csch}^2(x)}}\right )\\ &=-\tanh ^{-1}\left (\frac{\coth (x)}{\sqrt{\text{csch}^2(x)}}\right )\\ \end{align*}
Mathematica [A] time = 0.0065335, size = 18, normalized size = 1.29 \[ \sinh (x) \sqrt{\text{csch}^2(x)} \log \left (\tanh \left (\frac{x}{2}\right )\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.045, size = 15, normalized size = 1.1 \begin{align*} -\ln \left ({\rm coth} \left (x\right )+\sqrt{-1+ \left ({\rm coth} \left (x\right ) \right ) ^{2}} \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.73775, size = 23, normalized size = 1.64 \begin{align*} \log \left (e^{\left (-x\right )} + 1\right ) - \log \left (e^{\left (-x\right )} - 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.50292, size = 78, normalized size = 5.57 \begin{align*} -\log \left (\cosh \left (x\right ) + \sinh \left (x\right ) + 1\right ) + \log \left (\cosh \left (x\right ) + \sinh \left (x\right ) - 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{\coth ^{2}{\left (x \right )} - 1}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.12787, size = 31, normalized size = 2.21 \begin{align*} -{\left (\log \left (e^{x} + 1\right ) - \log \left ({\left | e^{x} - 1 \right |}\right )\right )} \mathrm{sgn}\left (e^{\left (2 \, x\right )} - 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]